package com.lwww.infinitechat.authenticationservice.exception;

import com.lwww.infinitechat.authenticationservice.constants.user.ErrorEnum;

public class DataBaseException extends RuntimeException {
    private final int code;
    public DataBaseException(ErrorEnum erro) {
        super(erro.getMessage());
        this.code = erro.getCode();
    }
    public int getCode() {
        return code;
    }

}
